#-*-Makefile-*- vim:syntax=make
define PXA27X_HELP

 PXA27x extras:

   debug    : compile with minimal optimization and debug symbols
   debugopt : compile with debug symbols

 Programmer extras:

   jflashmm : (default) use the Intel JFLASHMM tool to install
   xflash   : Use the Intel XFLASH tool to install
   openocd  : Use openocd to install

endef
HELP += $(PXA27X_HELP)

OBJCOPY = arm-none-eabi-objcopy
OBJDUMP = arm-none-eabi-objdump
SIZE    = arm-none-eabi-size
NM      = arm-none-eabi-nm
LIBS    = -lm
SET_ID  = tos-set-symbols

PFLAGS += -mtune=iwmmxt -march=iwmmxt

INSTALL_BIN = $(MAIN_BIN).out$(if $(NODEID),-$(NODEID),)

OPTFLAGS ?= -O3 -g
PFLAGS += -Wall -Wshadow

ifndef TOSMAKE_PROGRAMMER_TYPE
  $(call TOSMake_include,pxa27x/jflashmm.extra)
endif

TOSMAKE_ADDITIONAL_INPUTS += $(ASSEMBLY_FILES)

TOSMAKE_BINARY_FORMAT = bin
TOSMAKE_BINARY_IN = $(MAIN_BIN)
TOSMAKE_BINARY_OUT = $(INSTALL_BIN)
